# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=gpscorrelate
pkgver=2.1
pkgrel=0
pkgdesc="Program to match GPS tracks to photographs and store the matches in EXIF"
url="https://dfandrich.github.io/gpscorrelate/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	desktop-file-utils
	exiv2-dev
	gettext-dev
	gtk+3.0-dev
	intltool
	libintl
	libxml2-dev
	libxslt-dev
	"
subpackages="$pkgname-cli $pkgname-doc $pkgname-lang"
source="https://github.com/dfandrich/gpscorrelate/archive/$pkgver/gpscorrelate-$pkgver.tar.gz"

build() {
	make all build-po
}

check() {
	make check
}

package() {
	make install install-desktop-file install-po DESTDIR="$pkgdir" prefix=/usr
}

cli() {
	pkgdesc="$pkgdesc (cli only)"
	amove /usr/bin/gpscorrelate
}

sha512sums="
7ebb40ed9198ac44bcbc46e1abee64a68bc54be8d016489b48261acadaa834adc3b12eb9c3aedaf8b7e36c1ff49f7cce080f2b114009600ac469cc00931a9805  gpscorrelate-2.1.tar.gz
"
